import axios from '@/axios'
export const request = axios('http://10.125.11.197/canos-gw/ps-rule-engine-bff')

//规则集
const QUERY_RULE_SET_LIST = '/ruleset/query-rule-set-page-by-param'
//规则集编辑
const RULE_SET_SAVE_EDIT = '/ruleset/save-or-update'
//规则集list(选项)
const RULE_SET_ALLSET = '/ruleset/query-all-rule-set'
//激活规则集
const RULE_SET_ACTIVE = '/ruleset/activation/'
//规则集删除
const DELETE_RULE_SET = '/ruleset/delete-rule-set/'
//规则查询
const QUERY_RULE_LIST = '/rule/query-rule-page-by-param'
//规则新增或修改
const RULE_SAVE_EDIT = '/rule/save'
//规则对象
const FACT_LIST = '/rule/fact/fact-list'
//规则详情，根据ID查询规则
const RULE_DETAIL_BY_ID = '/rule/ruleDetail/'
//规则删除
const DELETE_RULE = '/rule/deleteRule/'
//规则编辑
const RULE_EDIT = '/rule/edit/'
//规则校验
const RULE_VERIFY = '/rule/verify-drl'
//规则对象列表
const RULE_FACT_LIST = '/rule/fact/query-rule-fact-page-by-param'
//规则对象新增
const RULE_FACT_SAVE = '/rule/fact/save'
//规则对象修改
const RULE_FACT_EDIT = '/rule/fact/edit'
//规则对象删除
const RULE_FACT_DELETE = '/rule/fact/delete/'
//规则对象详情
const RULE_FACT_BY_ID = '/rule/fact/query-rule-fact-by-id/'
//规则对象修改校验
const RULE_FACT_EDIT_VERIFY = '/rule/fact/edit_verify'
//规则节点、返回值节点、告警节点、规则链节点列表
const RULE_CHAIN_NODE_LIST = '/rule/node/query-rule-node-page-by-param'
//规则list--规则链绑定的规则列表
const RULE_SELECT_LIST = '/rule/query-list-by-param'
//修改新增规则链：规则节点、规则事件节点、规则链节点
const RULE_NODE_SAVE_OR_UPDATE = '/rule/node/save-or-update'
//删除规则链节点
const NODE_DELETE = '/rule/node/delete/'
//绑定规则链,查询得到所有的规则链
const RULE_CHAIN_ALL = '/rule-chain/query-all'
//根据ID查询规则链
const RULE_CHAIN_GET_BY_ID = '/rule-chain/get/'
//规则链新增接口
const RULE_CHAIN_SAVE = '/rule-chain/save'
//根据ID删除规则链
const RULE_CHAIN_DELETE = '/rule-chain/delete/'
//规则链分页查询
const RULE_CHAIN_QUERY_PAGE = '/rule-chain/query-page-by-param'
//修改规则链
const RULE_CHAIN_EDIT = '/rule-chain/edit/'
//得到节点根据节点类型和绑定的对象
const RULE_NODE_BY_FACT_PARAM_QUERY = '/rule/node/query-rule-node-by-param'
//根据对象ID得到规则链
const RULE_CHAIN_BY_FACT_PARAM_QUERY = '/rule-chain/query-by-param'
//保存修改组态
const RULE_CHAIN_SAVE_OR_UPDATE_CONFIG = '/rule-chain/save-or-update-config/'
//规则链组态查询
const RULE_CHAIN_GET_CONFIG = '/rule-chain/get-config/'
//启用规则链
const RULE_CHAIN_ENABLE = '/rule-chain/enable/'
//禁用规则链
const RULE_CHAIN_DISABLE = '/rule-chain/disable/'
//规则链调试
const RULE_CHAIN_DEBUG = '/rule-chain/debug-chain/'
//设备-测点数
const DEVICE_POINT_TREE = '/admin/devices/device-types/devices/points/tree'
//根据测点ID查询测点详情接口
const POINTS_DETAILS_BY_ID = '/admin/base-equ-info/points/'
//一级列表，设备类型列表
const DEVICE_TYPES = '/admin/devices/device-types'
//二级列表，根据设备类型查询设备列表
const DEVICES_BY_TYPEID = '/admin/devices/device-type/'
//三级列表,根据设备ID查询测点列表
const POINTS_BY_DEVICEID = '/admin/devices/'
//下载规则文档
const DOWNLOAD_TUTORIALS = '/rule/download-tutorials'
//机组列表
const DEVICES_UNITS = '/admin/devices/units'
//根据机组查询设备列表
const DEVICES_BYUNITID = '/admin/devices/units/'
//新增或者修改基础对象通用配置
const GENERAL_ADD_OR_UPDATE = '/rule/rulegeneralparameters/save-or-update'
//查询通用参数
const GENERAL_QUERY =
  '/rule/rulegeneralparameters/query-general-param-page-by-param'
//删除通用参数
const GENERAL_DELETE = '/rule/rulegeneralparameters/delete/'
//查询多有的通用参数
const GENERAL_QUERY_ALL = '/rule/rulegeneralparameters/query-all'

//改造接口
//创建和编辑规则对象时的测点选择下拉接口
const POINTS_OPTIONS = '/rule/fact/points'
//规则对象改造接口
//机组号下拉选择列表
const TRUNK_LIST = '/base/info/device'
//侧点下拉接口
const EXPRESS_POINTS = '/base/info/point'
//函数下拉列表选择
const EXPRESS_FUNCS = '/base/info/function'
//站选择下拉列表
const EXPRESS_CORE = '/base/info/device-type'
//优化接口
//节点关联信息修改
const UPDATE_NODE_RELATION = '/rule/node/update-node-relation'
//新增或修改节点接口
const SAVE_OR_UPDATE = '/rule/node/save-or-update'
//根据类型和对象ID查询满足要求的节点
const QUERY_NODE_DETAIL_BY_ID = '/rule/node/query-node-detail-by-id/'
//根据规则链ID查询所有节点
const QUERY_NODE_BY_CHAIN_ID = '/rule/node/query-node-by-chain-id/'
//删除节点
const DELETE_NODE = '/rule/node/delete/'
//保存链
const CHAIN_DEPLOY = '/rule-chain/deploy/'

//导出某条链
const EXPORT_RULE = '/rule-chain/export-rule-chain'
//倒入规则链
const IMPORT_RULE = '/rule-chain/import-rule-chain'
export default {
  QUERY_RULE_SET_LIST,
  RULE_SET_SAVE_EDIT,
  QUERY_RULE_LIST,
  RULE_SAVE_EDIT,
  RULE_SET_ALLSET,
  FACT_LIST,
  DELETE_RULE_SET,
  DELETE_RULE,
  RULE_EDIT,
  RULE_DETAIL_BY_ID,
  RULE_VERIFY,
  RULE_FACT_LIST,
  RULE_FACT_SAVE,
  RULE_FACT_EDIT,
  RULE_FACT_DELETE,
  RULE_FACT_BY_ID,
  RULE_CHAIN_NODE_LIST,
  RULE_SELECT_LIST,
  RULE_NODE_SAVE_OR_UPDATE,
  NODE_DELETE,
  RULE_CHAIN_ALL,
  RULE_CHAIN_GET_BY_ID,
  RULE_CHAIN_DELETE,
  RULE_CHAIN_SAVE,
  RULE_CHAIN_QUERY_PAGE,
  RULE_CHAIN_EDIT,
  RULE_SET_ACTIVE,
  RULE_NODE_BY_FACT_PARAM_QUERY,
  RULE_CHAIN_BY_FACT_PARAM_QUERY,
  RULE_CHAIN_SAVE_OR_UPDATE_CONFIG,
  RULE_CHAIN_GET_CONFIG,
  RULE_CHAIN_ENABLE,
  RULE_CHAIN_DISABLE,
  RULE_CHAIN_DEBUG,
  RULE_FACT_EDIT_VERIFY,
  DEVICE_POINT_TREE,
  POINTS_DETAILS_BY_ID,
  DEVICE_TYPES,
  DEVICES_BY_TYPEID,
  POINTS_BY_DEVICEID,
  DOWNLOAD_TUTORIALS,
  DEVICES_UNITS,
  DEVICES_BYUNITID,
  GENERAL_ADD_OR_UPDATE,
  GENERAL_QUERY,
  GENERAL_DELETE,
  GENERAL_QUERY_ALL,
  POINTS_OPTIONS,
  TRUNK_LIST,
  EXPRESS_POINTS,
  EXPRESS_FUNCS,
  EXPRESS_CORE,
  UPDATE_NODE_RELATION,
  SAVE_OR_UPDATE,
  QUERY_NODE_DETAIL_BY_ID,
  QUERY_NODE_BY_CHAIN_ID,
  DELETE_NODE,
  CHAIN_DEPLOY,
  EXPORT_RULE,
  IMPORT_RULE,
}
